﻿@{
    Layout = "_Layout.cshtml";
}
@using YaHall.Server;
@{
    string title = "";
    string content = "没有找到您的需要的内容";
    string cat=string.Empty;
    int id=0;
    decimal? artistId = null;
    YaHall.Model.info artistInfo=null;
    List<YaHall.Model.info> artistAct = null;
    List<YaHall.Model.info> objAll = null;
    List<YaHall.Model.info> objDraw = null;
    List<YaHall.Model.info> objCalligraphy = null;
    List<YaHall.Model.info> objOther = null;
    try
    {
        id = int.Parse(Request["id"]);
        cat = Request["cat"];
        Page.Cat = cat;
        Page.Title = "雅好网-名家意境-" + cat;
        artistId = Facade.GetArtistId(id);
        if (artistId.HasValue)
        {
            artistInfo = Facade.GetArtistInfoList((int)artistId.Value, 43, 1, false).FirstOrDefault();
            artistAct = Facade.GetArtistInfoList((int)artistId.Value, 44, 5, false);
            objAll = Facade.GetArtistInfoList((int)artistId.Value, 46, 80, true);
            objDraw = Facade.GetArtistInfoList((int)artistId.Value, 47, 80, true);
            objCalligraphy = Facade.GetArtistInfoList((int)artistId.Value, 48, 80, true);
            objOther = Facade.GetArtistInfoList((int)artistId.Value, 49, 80, true);

        }
    }
    catch
    {
    }
}
@section head {
<link href="../Css/art.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../Js/tab.js" type="text/javascript"></script>
}

<div class="w1 cl">
	<div class="fl"><div class="subTit E4 fB">@Page.Cat</div></div>
    <div class="fr"><div class="shumin C80">艺术简介 艺术成就 作品专集</div></div>
</div>
<!---->
<div class="pagebody over cl">
	<div class="pagebody-fl fl over">
    	<div class="artPhoto"><img src="http://info.yahall.com/wp-content/uploads/@artistInfo.image" width="310" height="330" /></div>
        <div class="le-tit fB E4">社会活动</div>
        <div class="society">
        	<!--新闻图开始-->
            @{
                string pics = string.Empty;
                string texts = string.Empty;
                foreach (var item in artistAct)
                {
                    pics += "http://info.yahall.com/wp-content/uploads/" + item.image + "|";
                    texts += item.post_title + "|";
                }
                if (pics.Length > 0)
                {
                    pics = pics.Remove(pics.Length - 1);
                    texts = texts.Remove(texts.Length - 1);
                }
                
             }

			<script type="text/javascript"> 
			<!--
			    var focus_width = 310
			    var focus_height = 200
			    var text_height = 22
			    var swf_height = focus_height + text_height

			    var pics = '@pics'
			    var links = '#|#|#|#|#'
			    var texts = '@texts'
			    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + focus_width + '" height="' + swf_height + '">');
			    document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="../Images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value=#ffffff>');
			    document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
			    document.write('<param name="FlashVars" value="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '">');
			    document.write('<embed src="../Images/pixviewer.swf" wmode="opaque" FlashVars="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '" menu="false" bgcolor=#ffffff quality="high" width="' + focus_width + '" height="' + swf_height + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
			    document.write('</object>');
			//-->
			</script>
        	<!--新闻图结束-->
        </div>
    </div>
    <!--
    <div class="pagebody-fc fl">名家画馆名家画馆名家画馆名家画馆名家画馆名家画馆,名家画馆,名家画馆</div>
    -->
    <div class="pagebody-fr fr over">
    	<div class="atrint">
              @{var html = new HtmlString(artistInfo.post_content);
              @html
              }
        </div>
    </div>
</div>
<div class="aditem"><img src="../pic/banner04.gif" width="1003" height="70" /></div>
<!--作品开始-->
<div class="Works over">
	<div class="wor-tit cl">
    	<div class="fl">
        	<script>
        	    window.onload = function () {
        	        //自动播放auto第一个例子
        	        var ee = new opCard();
        	        ee.bind = ["tabC1", "li", "tabD1", "div"];
        	        ee.style = ["tab-1", "tab-2", "tab-3"];
        	        ee.auto = [true, 5000];
        	        ee.overChange = true;
        	        ee.creat();
        	        ee = null;
        	    }
			</script>
            <div class="art-tit" id="tabC1">
            	<ul>
                	<li>作品专区</li>
                    <li>书法作品</li>
                    <li>绘画作品</li>
                    <li>其它作品</li>
                </ul>
            </div>
            
        </div>
        <div class="fr">
        	sss
        </div>
    </div>
    <div class="wor-con over">
    	<div class="art-min" id="tabD1">
            <div>
            	<ul class="art-mcon over">
                @foreach (var item in objAll)
                {
                    <li>
                    	<span class="workpic"><img src="http://info.yahall.com/wp-content/uploads/@item.image" width="180" height="180" /></span>
                    </li>
                }

                    
                </ul>
            </div>
            <div>
            	<ul class="art-mcon over">
                @foreach (var item in objCalligraphy)
                {
                    <li>
                    	<span class="workpic"><img src="http://info.yahall.com/wp-content/uploads/@item.image" width="180" height="180" /></span>
                    </li>
                }
                </ul>
            </div>
            <div>
                <ul class="art-mcon over">
                @foreach (var item in objDraw)
                {
                    <li>
                    	<span class="workpic"><img src="http://info.yahall.com/wp-content/uploads/@item.image" width="180" height="260" /></span>
                    </li>
                }
                </ul>
            </div>
            <div>
                <ul class="art-mcon over">
                @foreach (var item in objOther)
                {
                    <li>
                    	<span class="workpic"><img src="http://info.yahall.com/wp-content/uploads/@item.image" width="180" height="180" /></span>
                    </li>
                }
                </ul>
            </div>
        </div>
    </div>
</div>
<!--作品结束-->
<div class="overview over">
	<ul>
    	<li class="li1icon">画馆被访问 <span class="red">1245</span> 次</li>
        <li class="li2icon">已有 26 条评论，点击<a href="#">发表评论</a></li>
        <li class="li3icon">标签：书法、绘画</li>
        <li class="li4icon">加入收藏</li>
    </ul>
</div>
<!--评论开始-->
<!--
<div class="comment over">
	<ul>
    	<li>
        	<div class="commain over cl">
            	<div class="userpic fl">
                	<div class="avatar"><img src="../pic/ldw.gif" width="80" height="80" /></div>
                    <div class="nickname">cheLin</div>
                </div>
                <div class="comcon fr">
                	<div class="comcon-t cl">
                    	<div class="posttime fl">2011-08-15 06:14:27 发表 </div>
                        <div class="floor fr">1</div>
                    </div>
                    <div class="comcon-c over">
                    	<div class="comm-item over">fff顶替顶顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶<br />替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村<br />顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶<br />替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村替顶替顶替村
                        </div>
                    </div>
                    <div class="comcon-b"></div>
                    <div class="reply fr">回复评论</div>
                </div>
            </div>
        </li>
        <li>
        	<div class="commain over cl">
            	<div class="userpic fl">
                	<div class="avatar"><img src="../pic/fzx.gif" width="80" height="80" /></div>
                    <div class="nickname">cheLin</div>
                </div>
                <div class="comcon fr">
                	<div class="comcon-t cl">
                    	<div class="posttime fl">2011-08-15 06:14:27 发表 </div>
                        <div class="floor fr">2</div>
                    </div>
                    <div class="comcon-c over">
                    	<div class="comm-item over">fff顶替顶顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶<br />替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村<br />顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶<br />替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村替顶替顶替村
                        </div>
                    </div>
                    <div class="comcon-b"></div>
                    <div class="reply fr">回复评论</div>
                </div>
            </div>
        </li>
        <li>
        	<div class="commain over cl">
            	<div class="userpic fl">
                	<div class="avatar"><img src="../pic/pic03.gif" width="80" height="80" /></div>
                    <div class="nickname">陈琳</div>
                </div>
                <div class="comcon fr">
                	<div class="comcon-t cl">
                    	<div class="posttime fl">2011-08-15 06:14:27 发表 </div>
                        <div class="floor fr">3</div>
                    </div>
                    <div class="comcon-c over">
                    	<div class="comm-item over">fff顶替顶顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶<br />替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村<br />顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶<br />替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村顶替顶替顶替顶替村替顶替顶替村
                        </div>
                    </div>
                    <div class="comcon-b"></div>
                    <div class="reply fr">回复评论</div>
                </div>
            </div>
        </li>
    </ul>
</div>

-->